package com.bsbm.member.domain;

/**
 * Created by gbpiqba on 12/30/13.
 */
public enum MemberTypeEnum {
    Associate("Associate"),
    Member("Member");

    private String text;

    MemberTypeEnum(String text) {
        this.text = text;
    }

    public String getText() {
        return this.text;
    }


    public static MemberTypeEnum fromString(String text) {
        if (text != null) {
            for (MemberTypeEnum b : MemberTypeEnum.values()) {
                if (text.equalsIgnoreCase(b.text)) {
                    return b;
                }
            }
        }
        return null;
    }

}
